import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
public class GetFiles {
    public static void main(String[] args) {
        // TODO code application logic here
      JFileChooser jfc = new JFileChooser("c:\\");
      jfc.setMultiSelectionEnabled(true);
      int ret = jfc.showOpenDialog(null);
      File[] files=jfc.getSelectedFiles();
      
      for(File file : files)
          JOptionPane.showMessageDialog(null,file.getPath());

    }
}
